package com.tcd.explore.mapper;

import com.tcd.explore.pojo.ObjectDamageInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 物损信息详情表 Mapper 接口
 * </p>
 *
 * @author Jarle
 * @since 2021-05-25
 */
public interface ObjectDamageInfoMapper extends BaseMapper<ObjectDamageInfo> {
    @Select("select * from object_damage_info where claim_mainId=#{claimmainId} and loss_status=1")
    public List<ObjectDamageInfo> objdamageinfo(String claimmainId);

    @Update("update object_damage_info set loss_status=#{lossstatus}  where claim_mainId=#{claimmainId}")
    public boolean ObjectDamageinfoupdate(@Param("lossstatus") String lossstatus, @Param("claimmainId") String claimmainId);

}
